package com.iplay.component.excel;

import com.iplay.component.excel.core.Converter;

public class DiscountConverter implements Converter<String, Double> {

	@Override
	public Double convert(String from) {
		if (from.length() >= 4)
			return Double.parseDouble(from.substring(0, 4));
		return 0.0;
	}

}
